const baseSize = Number.parseFloat(process.env.VITE_FOUNT_SIZE || '37.5px')
function setRem() {
  const scale = document.documentElement.clientWidth / (baseSize * 10)
  document.documentElement.style.fontSize = `${baseSize * Math.min(scale, 1)}px`
}
setRem()
window.onresize = function () {
  setRem()
}
